package com.xinnet.mms.deptarea.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinnet.mms.deptarea.dao.DeptAreaDao;
import com.xinnet.mms.deptarea.service.DeptAreaService;
import com.xinnet.mms.entity.Area;

@Service("deptAreaService")
public class DeptAreaServiceImpl implements DeptAreaService{
	
	@Autowired
	DeptAreaDao deptAreaDao;
	
	public List<Area> getAreaByDeptId(String deptId){
		List<Area> areaList = deptAreaDao.getAreaListByDeptId(deptId);
		return areaList;
	}
	
	public List<Area> getAreaListByDeptIdStr(String deptIdStr){
		List<Area> areaList = deptAreaDao.getAreaListByDeptIdStr(deptIdStr);
		return areaList;
	}

}
